package com.geek.gkmember.facade.expire.bean;

import com.geek.gkdoc.facade.DocField;
import com.geek.gkmember.facade.abs.AbstractRequest;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;

/**
 * <h1>通过长Token换短Token，请求对象。</h1><br/>
 *
 * <h1><br/><a href="https://u.geekbang.org/subject/arch3/100614201">Java 业务架构实战营：https://u.geekbang.org/subject/arch3/100614201</a></h1><br/><h1><a href="https://gitee.com/ylimhhmily/BizArchPracticeCamp">Java 业务架构实战营代码地址：https://gitee.com/ylimhhmily/BizArchPracticeCamp</a></h1><br/><h1><a href="https://u.geekbang.org/subject/java4th/1001148?source=app_share">高级 Java 工程体系课 2023 版：https://u.geekbang.org/subject/java4th/1001148?source=app_share</a></h1><br/><h1><a href="https://time.geekbang.org/column/intro/100312101?tab=catalog">Dubbo 源码剖析与实战：https://time.geekbang.org/column/intro/100312101?tab=catalog</a></h1>
 *
 * @author hmilyylimh
 * ^_^
 * @version 0.0.1
 * ^_^
 * @date 2023/9/3 17:14
 */
@Setter
@Getter
@ToString(callSuper = true)
public class ExchangeByRefreshTokenReq extends AbstractRequest {

    private static final long serialVersionUID = 1841405743270138528L;

    @NotBlank
    @DocField(desc = "长Token", extra = "换短Token(时效长点)", required = true, sampleVal = "tgvb09724263383dsfdsafasdfas897693", version = "20230901")
    private String refreshToken;

    @DocField(desc = "用户IP", required = true, sampleVal = "127.0.0.1", version = "20230901")
    private String loginIp;
    @DocField(desc = "设备号", required = true, sampleVal = "HYF0923", version = "20230901")
    private String deviceId;
    @DocField(desc = "设备类型", required = true, sampleVal = "Android", version = "20230901")
    private String deviceType;
}
